﻿using System;
using System.Collections;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            /*            Queue queue = new Queue();
                         queue.Enqueue("小艺");
                         queue.Enqueue("肖尔");
                         queue.Enqueue("消散");
                         queue.Enqueue("笑死");
                         Console.WriteLine("开始购票");
                         while (queue.Count !=0)
                         {
                             Console.WriteLine(queue .Dequeue ()+"购票成功！");
                         }
                             Console.WriteLine("购票结束！");

            */


            Queue queue = new Queue();
            queue.Enqueue("aaa");
            queue.Enqueue("bbb");
            queue.Enqueue("ccc");
            queue.Enqueue("ddd");
            object[] vs = queue.ToArray();
            foreach (var x in vs)
            {
                Console.WriteLine(x);
            }

        }
    }
}
